package concurrency;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

import net.mindview.util.CountingIntegerList;

public class CopyOnWriteArrayListTest extends ListTest {
    CopyOnWriteArrayListTest(int readers, int writers) {
        super("CopyOnWriteArrayList", readers, writers);
    }

    @Override
    List<Integer> containerInitializer() {
        CountingIntegerList list = new CountingIntegerList(sContainerSize);
        return new CopyOnWriteArrayList<Integer>(list);
    }
}
